package com.wzl.mixed;

import com.wzl.common.config.VKConfig;
import com.wzl.common.method.VKInitialization;
import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Import;

/**
 * 杂七杂八知识点启动类
 *
 * @author weizhongli
 * @since 2022-09-12 16:09
 */
@Slf4j
@SpringBootApplication
@MapperScan({
        "com.wzl.mixed.mapper"
})
//@ComponentScan(basePackages= {"com.wzl.common.*"}) // 上下二选一 目的是为了初始化子模块里面的类
@Import({VKInitialization.class, VKConfig.class})  //上下二选一 目的是为了初始化子模块里面的类
public class MixedPointsApplication {

    public static void main(String[] args) {
        try{
            SpringApplication.run(MixedPointsApplication.class, args);
            log.info("************杂七杂八知识点Mixed-Points启动成功************");
        }catch (Exception e){
            log.error("", e);
            log.error("************杂七杂八知识点Mixed-Points启动失败************");
        }
    }

}
